package com.scf.service;

/**
 * @author author
 * @create 2021-11-18-14:41
 */

import com.scf.entity.History;
import com.scf.uitl.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "historyapproval")
public interface HistoryService {
    @PutMapping("/history/insert")
    public boolean insert(@RequestBody History history);

    @GetMapping("/history/select/{plid}")
    public ResponseResult select(@PathVariable("plid") int plid);
}
